baubs git
src/platform/interfaces/IFileService.ts fix/skeleton-fixes (943f1171) Text, 677 B
export interface IFileService {
/**
* Open file picker and return File object
* @param options File picker options (e.g., accept filter)
* @returns Selected File or null if cancelled
*/
openFileDialog(options: { accept: string }): Promise<File | null>;
/**
* Save file with native dialog (Electron only, no-op in browser)
* @param data File data as Uint8Array
* @param defaultName Default filename
*/
saveFileDialog(data: Uint8Array, defaultName: string): Promise<void>;
/**
* Check if native file dialogs are available
* @returns true if running in Electron with native dialogs, false otherwise
*/
hasNativeDialogs(): boolean;
}
Served by rngit 1.3.3 - Generated in 0.05s